package com.cy.pj.Controller;

import com.cy.pj.pojo.RequestResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
public class RequestPram {
    @RequestMapping("/getUrlPath01")
    @ResponseBody
    public String getUrlPath01(RequestResult requestResult){
        return "name="+requestResult.getName();
    }
    @RequestMapping("/getUrlPath02")
    public String getUrlPath02(String name){
        return "name="+name.toString();
    }
    @RequestMapping("/getUrlPath03")
    public String getUrlPath03(@RequestParam Map<String,Object> name){
        return "name="+name.toString();
    }
}
